{foreach item=oCoupon from=$oCoupons name=plist}
	{if $oCoupon->getTrackingURL() != ''}
		{assign var="URL" value="{$oCoupon->getTrackingURL()}"}
	{else}
		{assign var="URL" value="{$oCoupon->getMerchant()->getDisplayURL()}"}
	{/if}

	<DIV class="plist">
		<DIV class="titleBox">
			<h3 class="title">
				<A title="{$oCoupon->getName()}" href="{$HOME_URL}/redir.php?id={$oCoupon->getId()}&URL={$URL|base64_encode}" rel="nofollow" target="_blank">
					<!-- google_ad_section_start -->
					{$oCoupon->getName()|truncate:240:"..."}
					{if $oCoupon->getImpressionpixel() != ''}
						<IMG src="{$oCoupon->getImpressionpixel()}">
					{/if}
					<!-- google_ad_section_end -->
				</A>
			</h3>
		</DIV>
		<!-- google_ad_section_start(weight=ignore) -->
		<DIV class="contentBox">
			{if $oCoupon->getCreativeType() == 1}
				<DIV class="img">
					<a title="{$oCoupon->getName()}" id="thumb_{$oCoupon->getId()}" href="{$oCoupon->getCouponImage()->getImpressionTrackingUrl()}" class="highslide" onclick="return hs.expand(this)" rel="nofollow" target="_blank">
						<IMG border="0" alt="{$oCoupon->getName()}" src="{$HOME_URL}/images/url/80/80/{$oCoupon->getCouponImage()->getImpressionTrackingUrl()|base64_encode}" />
					</a>					
					<div class="highslide-caption">
					</div>
				</DIV>
				
			{/if}
		
			<DIV class="summary">					
				{if $oCoupon->getDescript() != ''}			
					{if $oCoupon->getCreativeType() == 1}
						<DIV class="descript" style="width:520px">
					{else}
						<DIV class="descript">
					{/if}
							{$oCoupon->getDescript()}							
						</DIV>
				{/if}
				
				{if $oCoupon->getCode() != ''}
					<DIV class="couponCode">
						<DIV class="attributePrefix font11">●</DIV><div class="attributeTitle font12 fontWeight">Coupon Code: </div><span class="code">{$oCoupon->getCode()}</span>
					</DIV>
				{/if}
				
				{if $oCoupon->getEndDate() != '' AND $oCoupon->getEndDate() != '0000-00-00'}
					<DIV class="expireDate">
						<DIV class="attributePrefix font11">●</DIV><DIV class="attributeTitle font12">Offer Expires:</DIV><div class="font12"> {$oCoupon->getEndDate()|date_format}</div>
					</DIV>
				{else}
					<DIV class="expireDate">
						<DIV class="attributePrefix font11">●</DIV><DIV class="attributeTitle font12">Offer Expires:</DIV><div class="font12"> limited time</div>
					</DIV>
				{/if}

				{foreach item=oAttribute from=$oCoupon->getAttributes()}
					{if $oAttribute->getAttributeName() != 'Unspecified'}
						<DIV class="promo">
							<DIV class="attributePrefix font11">●</DIV><DIV class="attributeTitle font12">Promotion Type:</DIV><div class="font12"> {$oAttribute->getAttributeName()}</div>
						</DIV>
					{/if}
				{/foreach}
				
				{if $isCategory == ''}
					{if $oCoupon->getCategory()->getName() != ''}
						<DIV class="category">
							<DIV class="attributePrefix font11">●</DIV><DIV class="attributeTitle font12">Category:</DIV> <a href="javascript:void(0);" onclick="requestPage('/categories/{$oCoupon->getCategory()->getFilteredName()}-coupon-codes', {$oCoupon->getCategory()->getId()}, 1);">{$oCoupon->getCategory()->getName()}</a>
						</DIV>
					{/if}	
				{/if}
				
				<DIV class="mer">
					<DIV class="attributePrefix font11">●</DIV>
					<div class="font12">More <a href="{$HOME_URL}/{$oCoupon->getMerchant()->getNameId()}-coupon-codes">{$oCoupon->getMerchant()->getName()} coupon codes</a>
                    </div>
                </DIV>
			</DIV>
		</DIV>
	</DIV>
	<!-- google_ad_section_end(weight=ignore) -->
{/foreach}